package cn.wolfcode.luowowo2.articleserver.service.imp;

import cn.wolfcode.luowowo2.article.domain.TravelCommend;
import cn.wolfcode.luowowo2.article.mapper.TravelCommendMapper;
import cn.wolfcode.luowowo2.article.service.ITravelCommendService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by Albert on 2019/7/14.
 */
@Service
public class TravelCommendServiceImpl implements ITravelCommendService{
    @Autowired
    private TravelCommendMapper mapper;

    @Override
    public List<TravelCommend> getTop5Commends() {
        return mapper.selectTop5Commends();
    }
}
